<html>
	<head>
		<title>GASCIAN - admin</title>
		<?php 
		$this->load->view("admin/partial/headerlinks");
		?>
	</head>
	<body>

    <div id="wrapper">
		<?php 
			$this->load->view("admin/partial/navmenu");
		?>
      <div id="page-wrapper">

        <div class="row">
          <div class="col-lg-12">
            <h1>Main Subject</h1>
          </div>
        </div><!-- .row -->

        

        <div class="row">
          <div class="col-lg-12">
            <div class="panel panel-primary">
              <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-bar-chart-o"></i> Add Main Subject</h3>
              </div>
              <div class="panel-body">
                <div id="morris-chart-area">
                

		              <div class="panel-body">
		                <div class="table-responsive">
						<?php 
						if(count($mainSubjects) < 1){
							$mainSubjects = Array(Array ( 'id' => 0, 'name' => ''));
						}
						foreach ($mainSubjects as $ls){
						?>                
		                <form role="form" action="<?php echo base_url()?>admin/subjects/addMainSubject?id=<?php echo $ls['id'];?>" method="post">
		
			              <div class="form-group">
			                <label>Main Subject Name</label>
			                <input name="mainsubject" class="form-control" placeholder="Enter Main Subject Name" value="<?php echo $ls['name'];?>">
			                <input  type="hidden" name="addMemberPostData" value="1">
			              </div>
			                
			                <input type="submit" class="btn btn-primary" value="Save Main Subject">
			                <a type="button" class="btn btn-link" href="<?php echo base_url()?>admin/subjects" >Cancel</a>
			            </form>
			            <?php 
						}
			            ?>
		                </div>
		                
		              </div><!-- panel-body -->
                
                
                </div>
              </div>
            </div>
          </div>
        </div> 
        
        </div><!-- /#page-wrapper -->

    </div><!-- /#wrapper -->

	<?php 
		$this->load->view("admin/partial/footerlinks");
	?>
	</body>
</html>
